import Layout from '@neu/biz-core/layout'

export default [
  {
    path: '/base',
    name: 'dcam_base',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '基础设置',
      icon: 'settings',
      module: 'dcam',
      code: 'menu_base'
    },
    component: Layout,
    children: [
      {
        path: 'assettype',
        name: 'dcam_assettype',
        meta: {
          title: '资产分类',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_base_assettype'
        },
        component: () => import('@neu/dcam-ui/views/assetType')
      },
      {
        path: 'spareyype',
        name: 'dcam_sparetype',
        meta: {
          title: '配件分类',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_base_sparetype'
        },
        component: () => import('@neu/dcam-ui/views/spareType')
      },
      {
        path: 'location',
        name: 'dcam_location',
        meta: {
          title: '位置管理',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_base_location'
        },
        component: () => import('@neu/dcam-ui/views/locations')
      },
      {
        path: 'workflowform',
        name: 'dcam_workflowform',
        hidden: true,
        meta: {
          title: '表单管理',
          icon: 'right-arrow',
          module: 'dcom'
        },
        component: () => import('@neu/dcam-ui/views/workOrder/definition')
      },
      {
        path: 'businessProcessType',
        name: 'dcam_businessProcessType',
        hidden: true,
        meta: {
          title: '流程模板',
          icon: 'right-arrow',
          module: 'dcam'
        },
        component: () => import('@neu/dcam-ui/views/workOrder/process')
      },
      {
        path: 'sysTask',
        name: 'dcam_sysTask',
        hidden: true,
        meta: {
          title: '定时任务',
          icon: 'right-arrow',
          module: 'auth'
        },
        component: () => import('@neu/dcam-ui/views/sysTask')
      },
      {
        path: 'dictionarytype',
        name: 'dcam_dictionarytype',
        meta: {
          title: '字典类型',
          icon: 'right-arrow',
          module: 'auth',
          code: 'menu_base_dictionarytype'
        },
        component: () => import('@neu/dcam-ui/views/dictionaryType')
      },
      {
        path: 'dictionary',
        name: 'dcam_dictionary',
        meta: {
          title: '字典管理',
          icon: 'right-arrow',
          module: 'auth',
          code: 'menu_base_dictionary'
        },
        component: () => import('@neu/dcam-ui/views/dictionary')
      },
      {
        path: 'noticeRecord',
        name: 'dcam_noticeRecord',
        hidden: true,
        meta: {
          title: '通知记录',
          icon: 'right-arrow',
          module: 'auth'
        },
        component: () => import('@neu/dcam-ui/views/noticeRecord')
      },
      {
        path: 'workflowForm',
        name: 'dcam_workflowForm',
        hidden: true,
        meta: {
          title: '表单管理',
          icon: 'right-arrow',
          module: 'auth'
        },
        component: () => import('@neu/dcam-ui/views/workOrder/definition')
      },
      {
        path: 'bpmn',
        name: 'dcam_workflowEdit',
        hidden: true,
        meta: {
          title: 'BPMN',
          icon: 'right-arrow'
        },
        component: () => import('@neu/dcam-ui/views/workOrder/bpmn/edit.vue')
      },
      {
        path: 'sl/printer',
        name: 'assets_sl_printer',
        meta: {
          title: '打印设置（总行）',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_base_sl_printer',
          belongs: 'sl'
        },
        component: () => import('@neu/dcam-ui/views/printer')
      },
      {
        path: 'kj/printer',
        name: 'assets_kj_printer',
        meta: {
          title: '打印设置（科技）',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_base_kj_printer',
          belongs: 'kj'
        },
        component: () => import('@neu/dcam-ui/views/printer')
      }
    ]
  },
  {
    path: '/auth',
    name: 'hn_auth',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '用户认证',
      icon: 'peoples',
      module: 'auth',
      code: 'menu_auth'
    },
    component: Layout,
    children: [
      {
        path: 'users',
        name: 'hn_users',
        meta: {
          title: '用户管理',
          icon: 'right-arrow',
          module: 'auth',
          code: 'menu_auth_users'
        },
        component: () => import('@neu/auth-ui/views/users')
      },
      {
        path: 'roles',
        name: 'hn_roles',
        meta: {
          title: '角色管理',
          icon: 'right-arrow',
          module: 'auth',
          code: 'menu_auth_roles'
        },
        component: () => import('@neu/auth-ui/views/roles')
      },
      {
        path: 'organizations',
        name: 'hn_organizations',
        meta: {
          title: '部门管理',
          icon: 'right-arrow',
          module: 'auth',
          code: 'menu_auth_organizations'
        },
        component: () => import('@neu/auth-ui/views/organizations')
      },
      {
        path: 'permissions',
        name: 'hn_permissions',
        meta: {
          title: '权限管理',
          icon: 'right-arrow',
          module: 'auth',
          code: 'menu_auth_permissions'
        },
        component: () => import('@neu/auth-ui/views/permissions')
      }
    ]
  }
]
